import 'package:flutter/material.dart';
void main()=>runApp(MyApp());

class MyApp extends StatelessWidget{
  Widget build(BuildContext context){
    return MaterialApp(
      home:Scaffold(
        appBar: AppBar(
          title: Text("data",
          textAlign: TextAlign.right,
          ),
        ),
        body: Container(
          height: 180,
          child:ListView(
          scrollDirection: Axis.horizontal,
          padding: EdgeInsets.all(10),
          children: <Widget>[
            Container(
              width: 180,
              height: 180,
              color:Colors.red
            ),
             Container(
              width: 180,
              height: 180,
              color:Colors.green
            ),
            Container(
              width: 180,
              height: 180,
              color:Colors.red
            ),
             Container(
              width: 180,
              height: 180,
              color:Colors.green
            ),
          ],
        ),)
      ),
    );
  }
}
